<?php

$basePath = dirname(dirname(__DIR__));

return [
    'id' => RUN_MODULE,
    'basePath' => $basePath . '/' . RUN_MODULE,
    'vendorPath' => $basePath . '/vendor',
    'controllerNamespace' => RUN_MODULE . '\controllers',
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'bootstrap' => [],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'modules' => [],
    'timeZone' => 'Asia/Shanghai',//设置时区
    'components' => [
        //设置缓存为redis缓存
        'cache' => [
            'class' => 'yii\redis\Cache',
            'keyPrefix' => 'cache:',
            'redis' => 'redis_cache',
        ],
        //配置url美化
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [],
        ],
    ],
];
